var config = require('../models/configModel');
exports.getConfig = function(app){
	var arr = new Array();
    config.getConfig(function(data){
    	data.forEach(function(v,k){
    		arr[v['web_key']] = v.web_value;
    	})
    	app.locals.footer1  = arr.footer1;
    	app.locals.footer2  = arr.footer2;
    	app.locals.company = arr.company;
    	app.locals.address = arr.address;
    	app.locals.web     = arr.web;
    	app.locals.email   = arr.email;
    	
    })
}